package com.zucc.controller.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author : charspan
 * @Description :
 * @create : 2021-12-05 9:00 上午
 */
@Data
@ApiModel("菜单信息返回值")
public class MenuResp {

    @ApiModelProperty(value = "菜单编号", required = true)
    private Long id;

    @ApiModelProperty(value = "创建时间", required = true)
    private Date createTime;

    @ApiModelProperty(value = "最后修改时间", required = true)
    private Date modifyTime;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "所属系统（模块）类型，-1：系统（默认），0:实验中心教学情况统计综合管理系统，1:数据中心资源审批综合管理系统，2:实验中心后台管理系统")
    private Long sysTypeDictItemId = -1L;

    @ApiModelProperty(value = "上级菜单编号, 默认为0代表没有上级菜单")
    private Long pId;

    @ApiModelProperty(value = "菜单名称", required = true)
    @NotNull(message = "菜单名称不能为空")
    private String name;

    @ApiModelProperty(value = "菜单图标短链接")
    private String icon;

    @ApiModelProperty(value = "菜单跳转短链接", required = true)
    @NotNull(message = "菜单跳转短链接不能为空")
    private String uri;

    @ApiModelProperty(value = "菜单排序")
    private Integer sort;
}
